package vitaliy.bondar.diamondcave;

import org.andengine.entity.scene.background.Background;
import org.andengine.entity.text.Text;
import org.andengine.util.color.Color;

import vitaliy.bondar.diamondcave.SceneManager.SceneType;

public class LoadingScene  extends BaseScene
{
    @Override
    public void createScene()
    {
        setBackground(new Background(Color.WHITE));
        
        Text label = new Text(220, 200, resourcesManager.menu_font, 
                                    activity.getString(R.string.loading), vbom);
        
        label.setPosition(camera.getCenterX() - label.getWidth() / 2, 
                camera.getCenterY() - label.getHeight() / 2);
        
        attachChild(label);
    }

    @Override
    public void onBackKeyPressed()
    {
        return;
    }

    @Override
    public SceneType getSceneType()
    {
        return SceneType.SCENE_LOADING;
    }

    @Override
    public void disposeScene()
    {
    	this.detachChildren();
    }
}